<template>
  <AppView :menu-list="testMenuListData">
    <div slot="content">
      <router-view/>
    </div>
  </AppView>
</template>

<script>
import AppView from "../../components/basic/AppView";
import caishen from "../../assets/image/caishen.png";

export default {
  name: 'member',
  components: {
    AppView
  },
  data: function () {
    return {
      title: "",
      testMenuListData: {
        baseRoute: "member",
        menuList: [
          {
            title: "会员管理",
            icon: caishen,
            items: [
              {
                route: "",
                text: "新增用户",
                default: true
              },
              {
                route: "m1",
                text: "投资用户管理"
              },
              {
                route: "m2",
                text: "借款用户管理"
              },
            ]
          },
        ]
      }
    }
  },
   methods: {
    onClick(event, pIndex, index) {
      this.title = this.testMenuListData[pIndex].items[index].text;
      console.log(this.title);
    }
  }
}
</script>
